package com.groupscore.score.dao;

import com.groupscore.score.pojo.Personal;
import com.groupscore.score.pojo.PersonalScore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

public interface PersonalDao extends JpaRepository<Personal, String> {


    @Query(value = "select user_name as value, user_name as label from personal", nativeQuery = true)
    List<Map> personalList();
}
